package com.example.shixun.service.impl;

import com.example.shixun.dao.TestDao;
import com.example.shixun.pojo.Test;
import com.example.shixun.service.TestService;

import javax.annotation.Resource;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 16:29
 */
public class TestServiceImpl implements TestService {
    @Resource
    private TestDao testDao;

    @Override
    public int saveTest(Test test) {
        return testDao.saveTest(test);
    }

    @Override
    public int deleteTestById(int id) {
        return testDao.deleteTestById(id);
    }

    @Override
    public Test selectTestById(int id) {
        return testDao.selectTestById(id);
    }

    @Override
    public int updateTest(Test test) {
        return testDao.updateTest(test);
    }
}
